* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }

/* 顶部模式切换按钮 */
.controls {
  position: fixed; right: 16px; top: 16px; z-index: 10; display: flex; gap: 8px;
}
.mode-btn {
  appearance: none; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: #e6f0ff; cursor: pointer;
  padding: 6px 10px; border-radius: 6px; font-size: 12px;
}
.mode-btn:hover { background: rgba(255,255,255,0.15); }
.mode-btn.active { background: #5c7fff; border-color: #5c7fff; color: #0b1020; }

/* 设计稿画布（用于 scale 与 rem 方案） */
#app {
  position: absolute; left: 50%; top: 50%; transform-origin: 0 0;
  width: 1920px; height: 1080px; transform: translate(-50%, -50%);
}

.header, .footer {
  width: 100%; height: 80px; line-height: 80px; text-align: center;
  background: rgba(255,255,255,0.06); color: #e6f0ff; backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer { border-top: 1px solid rgba(255,255,255,0.08); border-bottom: none; }

.main { display: flex; width: 100%; height: calc(100% - 160px); padding: 16px; gap: 16px; }
.left, .right { width: 22%; display: flex; flex-direction: column; gap: 16px; }
.center { flex: 1; display: flex; flex-direction: column; }

.panel {
  flex: 1; background: linear-gradient(180deg, rgba(32,45,84,0.65) 0%, rgba(22,31,62,0.65) 100%);
  border: 1px solid rgba(92,127,255,0.25); border-radius: 10px; padding: 12px 12px 8px; color: #dbe7ff;
}
.panel.large { flex: 1; }
.panel-title { font-size: 18px; letter-spacing: 0.5px; margin-bottom: 8px; color: #a6c1ff; }
.panel-content { opacity: 0.9; font-size: 14px; }
.chart { width: 100%; height: calc(100% - 28px); }

/* vw/vh 模式：通过 body 类控制，说明布局使用百分比即可。这里仅保留通用样式 */
.vwvh-mode #app { transform: translate(-50%, -50%); }


